<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="xmlCode.title" />
    </title>
    <meta name="heading" content="<fmt:message key='xmlCode.heading'/>" />
</head>

<form:form id="albumSearch" name="albumSearch" method="post" action="albumView.html">
    <table class="table">
        <tr>
            <td><fmt:message key="xmlCode.video.id"/></td>
            <td><input type="text" id="albumViewSearchCondition.videoId" name="videoId" value="${albumViewSearchCondition.videoId}"/></td>
        </tr>
        <tr>
            <td><fmt:message key="xmlCode.videoName"/></td>
            <td><input type="text" id="albumViewSearchCondition.videoName" name="videoName" value="${albumViewSearchCondition.videoName}"/></td>
        </tr>
        <tr>
            <td><fmt:message key="xmlCode.video.type"/></td>
            <td>
                <select id="albumViewSearchCondition.videoType" name="videoType">
                    <option value="1" <c:if test="${albumViewSearchCondition.videoType == '1'}">selected="selected"</c:if>><fmt:message key="xmlCode.video.type.1"/></option>
                    <option value="2" <c:if test="${albumViewSearchCondition.videoType == '2'}">selected="selected"</c:if>><fmt:message key="xmlCode.video.type.2"/></option>
                    <option value="3" <c:if test="${albumViewSearchCondition.videoType == '3'}">selected="selected"</c:if>><fmt:message key="xmlCode.video.type.3"/></option>
                </select>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align:center;">
                <input type="submit" value="<fmt:message key="button.search"/>"/>
                <input type="hidden" value="<fmt:message key="button.reset"/>"/>
            </td>
        </tr>
    </table>
</form:form>

<table>
    <tr>
        <td colspan="3"><input type="submit" size="60" value="<fmt:message key="xmlCode.button.submit"/>" onclick="return confirm('<fmt:message key="xmlCode.button.submit.comfirm"/>');"/></td>
    </tr>
    <tr>
        <td style="text-align:top;">
        <table class="table" style="text-align: top;">
            <tr>
                <td><fmt:message key="xmlCode.film.id"/></td>
                <td><fmt:message key="xmlCode.film.name"/></td>
                <td><fmt:message key="xmlCode.video.type"/></td>
                <td><fmt:message key="xmlCode.video.option"/></td>
            </tr>
            <c:forEach items="${appFilemsList}" var="filmInfo">
            <form:form id="delAlbum" name="delAlbum" action="delAlbumView.html" onsubmit="">
            <tr>
                <input type="hidden" id="appVideos.id" name="id" value="${filmInfo.id}"/>
                <td>${filmInfo.videoId}</td>
                <td>${filmInfo.videoName}</td>
                <td>${filmInfo.videoType}</td>
                <td><input type="submit" value="<fmt:message key="button.delete"/>"  onclick="return confirm('<fmt:message key="button.delete.message"/>');"/></td>
            </tr>
            </form:form>
            </c:forEach>
        </table>
        </td>
        <td>
        <table class="table">
            <tr>
                <td><fmt:message key="xmlCode.tv.id"/></td>
                <td><fmt:message key="xmlCode.tv.name"/></td>
                <td><fmt:message key="xmlCode.video.type"/></td>
                <td><fmt:message key="xmlCode.video.option"/></td>
            </tr>
            <c:forEach items="${appTvsList}" var="tvInfo">
            <form:form id="delAlbum" name="delAlbum" action="delAlbumView.html" onsubmit="">
            <tr>
                <input type="hidden" id="appVideos.id" name="id" value="${tvInfo.id}"/>
                <td>${tvInfo.videoId}</td>
                <td>${tvInfo.videoName}</td>
                <td>${tvInfo.videoType}</td>
                <td><input type="submit" value="<fmt:message key="button.delete"/>"  onclick="return confirm('<fmt:message key="button.delete.message"/>');"/></td>
            </tr>
            </form:form>
            </c:forEach>
        </table>
        </td>
        <td>
        <table class="table">
            <tr>
                <td><fmt:message key="xmlCode.other.id"/></td>
                <td><fmt:message key="xmlCode.other.name"/></td>
                <td><fmt:message key="xmlCode.video.type"/></td>
                <td><fmt:message key="xmlCode.video.option"/></td>
            </tr>
            <c:forEach items="${appOthersList}" var="otherInfo">
            <form:form id="delAlbum" name="delAlbum" action="delAlbumView.html" onsubmit="">
            <tr>
                <input type="hidden" id="appVideos.id" name="id" value="${otherInfo.id}"/>
                <td>${otherInfo.videoId}</td>
                <td>${otherInfo.videoName}</td>
                <td>${otherInfo.videoType}</td>
                <td><input type="submit" value="<fmt:message key="button.delete"/>"  onclick="return confirm('<fmt:message key="button.delete.message"/>');"/></td>
            </tr>
            </form:form>
            </c:forEach>
        </table>
        </td>
    </tr>
</table>

<table class="table">
    <tr>
        <td><fmt:message key="xmlCode.video.id"/></td>
        <td><fmt:message key="xmlCode.videoName"/></td>
        <td><fmt:message key="xmlCode.video.type"/></td>
        <td><fmt:message key="xmlCode.video.category"/></td>
        <td><fmt:message key="xmlCode.video.putdate"/></td>
        <td><fmt:message key="xmlCode.video.chapter"/></td>
        <td><fmt:message key="xmlCode.video.rate"/></td>
        <td><fmt:message key="xmlCode.video.hotcount"/></td>
        <td><fmt:message key="xmlCode.video.option"/></td>
    </tr>
    <c:forEach items="${albumList}" var="videoInfo">
    <form:form id="addAlbum" name="addAlbum" action="addAlbumView.html">
        <tr>
            <input type="hidden" id="appVideos.videoId" name="videoId" value="${videoInfo.id}"/>
            <input type="hidden" id="appVideos.videoType" name="videoType" value="${videoInfo.videoType}"/>
            <input type="hidden" id="appVideos.videoName" name="videoName" value="${videoInfo.videoName}"/>
            <td>${videoInfo.id}</td>
            <td>${videoInfo.videoName}</td>
            <td>
                <c:if test="${videoInfo.videoType == 1}"><fmt:message key="xmlCode.video.type.1" /></c:if>
                <c:if test="${videoInfo.videoType == 2}"><fmt:message key="xmlCode.video.type.2" /></c:if>
                <c:if test="${videoInfo.videoType == 3}"><fmt:message key="xmlCode.video.type.3" /></c:if>
                <c:if test="${videoInfo.videoType == 4}"><fmt:message key="xmlCode.video.type.4" /></c:if>
            </td>
            <td>${videoInfo.videoCategory}</td>
            <td>${videoInfo.videoPutDate}</td>
            <td>${videoInfo.videoChapterCount}</td>
            <td>${videoInfo.videoRate}</td>
            <td>${videoInfo.hotcount}</td>
            <td><input type="submit" value="<fmt:message key="button.add"/>"/></td>
        </tr>
    </form:form>
    </c:forEach>
</table>

